package com.study.selection.service;

import com.study.selection.model.Student;
import org.springframework.stereotype.Service;

import java.util.List;

public interface StudentService {
    List<Student> findAll();

    List<Student> findByKey(String key);

    boolean addStudent(Student student);

    Student getByStudentId(int studentId);

    //根据课程编号查询
    List<Student> getByCollegeId(int studentId);

    //根据班级编号查询
    List<Student> getByClassId(int classId);

    //根据专业编号查询
    List<Student> getByMajorId(int majorId);

    boolean updateStudent(Student student);
    // 逻辑删除
    boolean deleteStudent(int studentId);
}
